package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 标签指派
 * </p>
 *
 * @author ljy
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdLabelSend对象", description = "标签指派")
public class JdLabelSend extends Model<JdLabelSend> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标签")
    private String label;

    @ApiModelProperty(value = "发放人")
    private Integer referUser;

    @ApiModelProperty(value = "接收人")
    private Integer getUser;

    @ApiModelProperty(value = "获取时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date getTime;

    @ApiModelProperty(value = "获取团队")
    private Integer getGroup;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
